package com.module.third.bus;


import com.module.third.TemporaryData;
import com.module.third.bean.IThirdType;

import java.util.List;

public class PayBus {
    private @IThirdType.IPayStatus
    int status;//支付状态
    private @IThirdType.IPayType
    int type;//支付类型，微信，支付
    private @IThirdType.IBuyType
    int buyType;//购买类型
    private List extra;//额外数据

    public @IThirdType.IPayStatus int getStatus() {
        return status;
    }

    public @IThirdType.IPayType int getType() {
        return type;
    }

    public PayBus(int type, int status) {
        this.status = status;
        this.type = type;
        this.buyType = TemporaryData.getTemporary(IThirdType.ITemporaryCache.BUY_TYPE, Integer.class);
        this.extra = TemporaryData.getTemporary(IThirdType.ITemporaryCache.BUY_EXTRA, List.class);
    }

    public @IThirdType.IBuyType int getBuyType() {
        return buyType;
    }

    public List getExtra() {
        return extra;
    }

    public void setExtra(List extra) {
        this.extra = extra;
    }
}
